//
//  YDGUIImagePickerProvider.h
//  yidiangou
//
//  Created by lifayu on 15/12/24.
//  Copyright © 2015年 Yunva. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol YDGUIImagePickerProviderDelegate <NSObject>
@optional

//选择或者拍照成功后 返回图片的缓存地址 返回原始图片和编辑后的图片
- (void)onChoosePhotoSuccessWithFilePath:(NSString *)filePath OrginImage:(UIImage *)orginImage EditImage:(UIImage *)editImage UniqueId:(NSString *)uinqueId;


//选择或拍摄视频成功后 返回视频的默认图像
- (void)onChooseVideoSuccessWithDefaultVideoImage:(UIImage *)defaultImage UniqueId:(NSString *)uinqueId;
//选择或拍摄视频成功后 返回视频在本地的地址
- (void)onChooseVideoSuccessWithFilePath:(NSString *)filePath UniqueId:(NSString *)uinqueId;



@end



@interface YDGUIImagePickerProvider : NSObject

+ (instancetype)shareInstance;

+ (void)release;

//打开本地相册 选择图片 返回图片  上传图片 返回url
- (void)openLocalPhotoWithDelegate:(id<YDGUIImagePickerProviderDelegate>)aDelegate UniqueId:(NSString *)uinqueId;

//打开相机 拍摄图片 返回图片  上传图片 返回url
- (void)openCameraPhotoWithDelegate:(id<YDGUIImagePickerProviderDelegate>)aDelegate UniqueId:(NSString *)uinqueId;

//打开本地视频 选择视频 返回视频默认图片  转码为MP4  上传视频 返回视频url
- (void)openLocalVideoWithDelegate:(id<YDGUIImagePickerProviderDelegate>)aDelegate UniqueId:(NSString *)uinqueId;

//打开相机拍摄视频 返回视频默认图片  转码为MP4  上传视频 返回视频url
- (void)openCameraVideoWithDelegate:(id<YDGUIImagePickerProviderDelegate>)aDelegate UniqueId:(NSString *)uinqueId;


@end
